<template>
	<view>

		<daya-clone-navbar :prop_clone_navbar="clone_navbar" :prop_is_ipx="is_ipx" />

		<view class="container">
			<view class="font">
				<view class="logs_header" :style="{paddingTop: top + 'px'}">
					<view class="mrtxc" v-if="store_is_login">
						<image class="mrtxl" src="https://yunkeososyunchuc.bc8t.cn/ymq_canyino2o/static/mtx.png"></image>
						<view class="mrtxr">
							<button @tap="goToPageUrl('/ymq_canyino2o/pages/sjzx/wmdd/wmdd')" class="djsq"
								:style="'background:' + color">已登录,进入商家后台
							</button>
						</view>
					</view>

					<view class="mrtxc" v-if="!user_is_login && !store_is_login">
						<image class="mrtxl" src="https://yunkeososyunchuc.bc8t.cn/ymq_canyino2o/static/mtx.png"></image>
						<view class="mrtxr">
							<button @tap="onLoginClick" class="djsq" :style="'background:' + color">点击登录</button>
						</view>
					</view>
					<block v-if="user_is_login">
						<view @click.stop="goToPageUrlLogin('/ymq_canyino2o/pages/my/userinfo?showLoginManage=true')"
							class="logs_img">
							<image class="logs_imgs" :src="userInfo.img"></image>
							<view class="name">
								<text>{{ userInfo.name }}</text>
								<text>{{ userInfo.user_tel }}</text>
							</view>
						</view>
						<image @click.stop="goToPageUrlLogin('/ymq_canyino2o/pages/my/userinfo?showLoginManage=true')"
							class="setting" src="/static/ymq_canyino2o/setting.png" mode="scaleToFill" />
					</block>
				</view>
				<view class="logs_items">
					<view @click.stop="goToPageUrlLogin('/ymq_canyino2o/pages/wallet/walletadd')" class="item">
						<image src="../../../static/ymq_canyino2o/jf.png" mode=""></image>
						<text class="num">{{ userInfo.wallet }}</text>
						<text>余额</text>
						<!-- <view class="btn">充值</view> -->
					</view>
					<view @click.stop="goToPageUrlLogin('/ymq_canyino2o/pages/integral/integral')" class="item">
						<image class="jf" src="../../../static/ymq_canyino2o/ye.png" mode=""></image>
						<text class="num">{{ userInfo.total_score }}</text>
						<text>积分</text>
						<!-- <view class="btn">兑换</view> -->
					</view>
					<view @click.stop="wdyhq" class="item">
						<image class="yhq" src="../../../static/ymq_canyino2o/yhq.png" mode=""></image>
						<text class="num">{{ userInfo.total_score }}</text>
						<text>优惠券</text>
						<!-- <view class="btn">兑换</view> -->
					</view>
				</view>

				<!--<view class="logs_content">-->

				<!--  <view @tap="goToPageUrlLogin('/ymq_canyino2o/pages/errand/list')" class="content_left">-->
				<!--    <view class="content_right">-->
				<!--      <image style="width: 80rpx; height: 60rpx" class="wallet_img"-->
				<!--             src="https://ymqycc.oss-cn-chengdu.aliyuncs.com/ymqzho2o/static/ymq_canyino2o/wddd.png"></image>-->
				<!--    </view>-->
				<!--    <view class="content_integral">跑腿订单</view>-->
				<!--  </view>-->

				<!--  <view @tap="goToPageUrlLogin('/ymq_canyino2o/pages/wddd/order')" class="content_left">-->
				<!--    <view class="content_right">-->
				<!--      <image style="width: 80rpx; height: 60rpx" class="wallet_img"-->
				<!--             src="https://ymqycc.oss-cn-chengdu.aliyuncs.com/ymqzho2o/static/ymq_canyino2o/wddd.png"></image>-->
				<!--    </view>-->
				<!--    <view class="content_integral">外卖订单</view>-->
				<!--  </view>-->
				<!--</view>-->

				<view class="logs_seller">
					<view @tap="goToPageUrlLogin('/ymq_canyino2o/pages/errand/list')" class="logs_center" style="border:none;padding: 20rpx ;box-sizing: border-box;">
						<image class="center_map" mode="aspectFit" src="/static/ymq_canyino2o/pt.png"></image>
						<view style="font-size: 26rpx;">跑腿订单</view>
					</view>
					<view @tap="goToPageUrlLogin('/ymq_canyino2o/pages/wddd/order')" class="logs_center" style="border:none;padding: 20rpx ;box-sizing: border-box;">
						<image class="center_map" mode="aspectFit" src="/static/ymq_canyino2o/wm.png"></image>
						<view style="font-size: 26rpx;">外卖订单</view>
					</view>
				</view>
				<view>
					<!-- #ifdef MP-WEIXIN -->
					<!-- [miniprogram-to-uniapp] 公众号关注组件 仅微信小程序支持 -->
					<official-account></official-account>
					<!-- #endif -->

					<!-- #ifndef MP-WEIXIN -->
					<view class="px-4">
						<!--当前为非微信小程序环境，不支持公众号关注组件！-->
					</view>
					<!-- #endif -->

				</view>
				<view class="banner" v-if="lblist.length != 0">
					<view class="swiper-container">
						<swiper :autoplay="true" :circular="true" class="swiper" duration="500" :indicatorDots="lblist.length > 1"
							interval="5000">
							<swiper-item :data-index="index" v-for="(item, index) in lblist" :key="item.unique">
								<image @tap="jumps" class="img" :data-appid="item.appid" :data-id="item.id" :data-name="item.title"
									:data-src="item.src" :data-type="item.item" :data-wb_src="item.src2" :src="item.logo"></image>
							</swiper-item>
						</swiper>
					</view>
				</view>
				<ad :unitId="item.src" v-for="(item, index) in dbllz" :key="index"></ad>


				<view class="logs_seller" v-if="system.model=='1'">
					<view @tap="wdsc" class="logs_center" style="border:none;">
						<view class="logs_centerimg">
							<image class="center_map" mode="aspectFit"
								src="https://yunkeososyunchuc.bc8t.cn/ymq_canyino2o/static/wdsc.png"></image>
							<view>我的收藏</view>
						</view>
						<image class="center_img" src="https://yunkeososyunchuc.bc8t.cn/ymq_canyino2o/static/blackjt.png"></image>
					</view>
				</view>


				<view class="logs_order">
					<view class="title">
						更多功能
					</view>
					<view class="wrapper">
						<view @tap="wddz" class="logs_center">
							<image class="center_map" mode="aspectFit" src="/static/ymq_canyino2o/shdz.png"></image>
							<view>收货地址</view>
						</view>
						<view class="logs_center" @tap="jrqd" v-if="qdset.length>0 && qdset[0].is_open=='1'">
							<image class="center_map" mode="aspectFit" src="/static/ymq_canyino2o/mrqd.png"></image>
							<view>每日签到</view>
						</view>
						<view @tap="czzx" class="logs_center" v-if="system.is_cz==1">

							<image class="center_map" mode="aspectFit"
								src="https://yunkeososyunchuc.bc8t.cn/ymq_canyino2o/static/personal/chongzhi.png"></image>
							<view>充值中心</view>


						</view>
						
						
						<view @tap="goToPageUrlLogin('/ymq_canyino2o/pages/dayaShare/index')" class="logs_center" style="border:none;">
						
							<image class="center_map" mode="aspectFit" src="/static/ymq_canyino2o/sjrk.png"></image>
							<view>分享有礼</view>
						</view>
						
						
						<view @tap="goToPageUrlLogin('/ymq_canyino2o/pages/hyk/hyk')" class="logs_center" style="border:none;" v-if="system.hygn=='1'&&system.is_hy=='1'">
							<image class="center_map" mode="aspectFit" src="/static/ymq_canyino2o/sjrk.png"></image>
							<view>会员卡</view>
						</view>
						
						
						
						<view @tap="wdqg" class="logs_center" v-if="system.qggn=='1'">
							<image class="center_map" mode="aspectFit" src="/static/ymq_canyino2o/wdqg.png"></image>
							<view>我的抢购</view>
						</view>
						<view @tap="wdpt" class="logs_center" v-if="system.ptgn=='1'">

							<image class="center_map" mode="aspectFit" src="/static/ymq_canyino2o/wdpt.png"></image>
							<view>我的拼团</view>
						</view>
						<view @tap="wdyy" class="logs_center" v-if="system.is_yy=='1'">

							<image class="center_map" mode="aspectFit"
								src="https://yunkeososyunchuc.bc8t.cn/ymq_canyino2o/static/personal/yuyue.png"></image>
							<view>我的预约</view>
						</view>
						<view @tap="jfsc" class="logs_center" v-if="system.is_jf=='1'&&system.jfgn=='1'">

							<image class="center_map" mode="aspectFit"
								src="https://yunkeososyunchuc.bc8t.cn/ymq_canyino2o/static/personal/jifen.png"></image>
							<view>积分商城</view>
						</view>
						<view @tap="fx" class="logs_center" style="border-bottom:0" v-if="fxset.is_open=='1'">

							<image class="center_map" mode="aspectFit" src="/static/ymq_canyino2o/cjfx.png"></image>
							<view>{{fxset.fx_name}}</view>
						</view>
						<view @tap="sjrz" class="logs_center" v-if="system.is_mdrz==1">

							<image class="center_map" mode="aspectFit" src="/static/ymq_canyino2o/hzjm.png"></image>
							<view>合作加盟</view>
						</view>
						<view @tap="help" class="logs_center" style="border-bottom:0">

							<image class="center_map" mode="aspectFit" src="/static/ymq_canyino2o/zxkf.png"></image>
							<view>在线客服</view>
						</view>
						<view @tap="seller" class="logs_center" style="border:none;">

							<image class="center_map" mode="aspectFit" src="/static/ymq_canyino2o/sjrk.png"></image>
							<view>商家入口</view>
						</view>
					</view>
				</view>

				<view v-if="user_is_login || store_is_login" class="">
					<view @tap="logout" class="log-out" style="border:none;">
						<!-- <view class="logs_centerimg"> -->
							<!-- <image class="center_map" mode="aspectFit"
								src="https://ymqycc.oss-cn-chengdu.aliyuncs.com/ymqzho2o/static/ymq_canyino2o/tcdl.png"></image> -->
							<!-- <view>退出登录</view> -->
						<!-- </view> -->
						<!-- <image class="center_img" src="https://yunkeososyunchuc.bc8t.cn/ymq_canyino2o/static/blackjt.png"></image> -->
						退出登录
					</view>
				</view>





				<view class="copyright">
					<navigator :appId="system.tz_appid" class="copyright_logo" extraData="" openType="navigate" path=""
						target="miniProgram" version="release">
						<image class="copyright_img" mode="aspectFill" :src="system.bq_logo"></image>
						<view class="copyright_text">{{ system.bq_name }}</view>
					</navigator>
					<view class="copyright_txt">{{ system.support }}</view>
				</view>
			</view>
		</view>
		<u-popup mode="bottom" :show="isShowModal" @close="onModalClose" @open="onModalOpen" :round="10">
			<view style="min-height: 500rpx;padding: 40rpx">
				<!-- <view class="tabs">
          <view :class="['tab-item', index === curIndex ? 'active' : '']" v-for="(item, index) in tabs" :key="item.value" @click="onTabClick(index)">
            {{ item.label }}
          </view>
        </view> -->
				<!--登录页面-->
				<u-form labelPosition="left" labelWidth="150" :model="loginParams" :rules="rules" ref="uForm" v-if="!isFindPsd">
					<u-form-item label="账号" prop="loginParams.name" borderBottom ref="item1">
						<u--input v-model="loginParams.user_tel" border="none" placeholder="请输入账号"></u--input>
						<text slot="right" @click="onFindPsdClick">忘记密码</text>
					</u-form-item>
					<u-form-item label="密码" prop="loginParams.password" borderBottom ref="item1">
						<u--input v-model="loginParams.user_pass" placeholder="请输入密码" type="password" border="none"></u--input>
						<text slot="right" style="background: #ffd263;color: #fff;padding: 10rpx 30rpx;border-radius: 20rpx;"
							@click="loginClick">登录
						</text>
					</u-form-item>
				</u-form>
				<!--找回密码OR注册页面-->
				<u-form labelPosition="left" labelWidth="150" :model="loginParams" :rules="rules" ref="uForm" v-else>
					<u-form-item label="手机号" prop="loginParams.user_tel" borderBottom ref="item1">
						<u--input v-model="loginParams.user_tel" placeholder="请输入手机号" border="none"></u--input>
					</u-form-item>
					<u-form-item label="密码" prop="loginParams.user_pass" borderBottom ref="item1">
						<u--input v-model="loginParams.user_pass" type="password" placeholder="请输入密码" border="none"></u--input>
					</u-form-item>
					<u-form-item label="验证码" prop="loginParams.sms_code" borderBottom ref="item1">
						<u--input v-model="loginParams.sms_code" placeholder="请输入验证码" border="none"></u--input>
						<text slot="right" style="background: #ffd263;color: #fff;padding: 10rpx 30rpx;border-radius: 20rpx;"
							@click="toSendMsg">发送验证码
						</text>
					</u-form-item>
					<view class="" style="display: flex;">
						<view @click="toRegister"
							style="width: 200rpx;margin: 40rpx auto;text-align: center; background: #ffd263;color: #fff;padding: 10rpx 30rpx;border-radius: 20rpx;">
							提交
						</view>
						<view @click="toLogin"
							style="width: 200rpx;margin: 40rpx auto;text-align: center; background: #ffd263;color: #fff;padding: 10rpx 30rpx;border-radius: 20rpx;">
							返回登录
						</view>
					</view>

				</u-form>
				<view class="register" v-if="!isFindPsd">
					<text style="padding: 20rpx 0 ;" @click="onFindPsdClick">立即注册</text>


					<!-- #ifdef MP-WEIXIN -->
					<button size="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber"
						style="color:#ffffff;borderColor:#1AAD19" hover-class="is-hover">
						<u-icon name="weixin-fill" color="#42b983" size="60"></u-icon>
					</button>
					<!-- #endif -->

					<!-- #ifdef H5 -->
					<button v-if="isWxH5" size="default" @click="wxgzh_login" style="color:#ffffff;borderColor:#1AAD19"
						hover-class="is-hover">
						<u-icon name="weixin-fill" color="#42b983" size="60"></u-icon>
					</button>
					<!-- #endif -->

					<!-- #ifdef MP-TOUTIAO -->
					<button size="default" open-type="getPhoneNumber" @getphonenumber="decrypt_toutiao_phone_number"
						style="color:#ffffff;borderColor:#1AAD19" hover-class="is-hover">
						<!--<u-icon name="weixin-fill" color="#42b983" size="60"></u-icon>-->
						<image class="h-4 w-4" src="/static/douyin.png"></image>
					</button>
					<!-- #endif -->

				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	// #ifdef APP || MP-WEIXIN || H5
	import {
		mutations as uniIdMutations
	} from '@/uni_modules/uni-id-pages/common/store.js'

	import uniImUtils from '@/uni_modules/uni-im/common/utils.js';
	// #endif

	import cardlist from '@/ymq_canyino2o/dist/cardlist/index';
	import gettel from '@/ymq_canyino2o/dist/gettel/index';

	var app = getApp();
	var util = require('../../utils/util.js');
	export default {
		components: {
			cardlist,
			gettel
		},
		data() {
			return {
				carte: [{
						img1: 'https://yunkeososyunchuc.bc8t.cn/ymq_canyino2o/static/personal/kefu.png',
						name: '客服与投诉',
						img2: '',
						margin: 'margin_top',
						border: 'border_bottom',
						bindtap: 'customer'
					},
					{
						img1: 'https://yunkeososyunchuc.bc8t.cn/ymq_canyino2o/static/personal/bangzhu.png',
						name: '帮助中心',
						img2: '',
						border: 'border_bottom',
						bindtap: 'help'
					}
				],

				top: '-420',
				yhnum: '',

				system: {
					hygn: '',
					is_hy: '',
					is_tel: 0,
					model: '',
					is_cz: 0,
					qggn: '',
					ptgn: '',
					is_yy: '',
					is_jf: '',
					jfgn: '',
					is_mdrz: 0,
					tz_appid: '',
					bq_logo: '',
					bq_name: '',
					support: ''
				},

				fxset: {
					is_open: '',
					fx_name: ''
				},

				qdset: [],
				lblist: '',
				dbllz: '',
				zbllz: '',

				userInfo: {
					img: '',
					ishy: '',
					name: '',
					user_tel: '',
					wallet: '0',
					total_score: '0'
				},

				avatarUrl: '',
				nickName: '',

				color: '',
				is_open: '',
				curIndex: 0,
				tabs: [{
						value: '1',
						label: '账号登录'
					},
					{
						value: '2',
						label: '短信登录'
					}
				],
				loginParams: {
					user_tel: '',
					user_pass: '',
					sms_code: '',
					share_user_id: 0,
					deviceId: '',
				},
				isShowModal: false,
				isFindPsd: false,
				rules: {
					user_tel: {
						type: 'string',
						required: true,
						message: '请填写账号',
						trigger: ['blur', 'change']
					},
					user_pass: {
						type: 'string',
						required: true,
						message: '请填写密码',
						trigger: ['blur', 'change']
					}
				},
				top: 0
			};
		},
		created() {
			this.load_user_info();


			// #ifdef H5
			//判断当前浏览器环境是否是微信公众号
			if (navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == "micromessenger") {
				console.log("uni.getStorageSync('openid_wx_gzh')", uni.getStorageSync('openid_wx_gzh'))
				if (uni.getStorageSync('openid_wx_gzh') == undefined || uni.getStorageSync('openid_wx_gzh') == '') {
					this.openid_get_wx_gzh();
				}
			}
			// #endif

			// #ifdef MP-WEIXIN
			console.log("uni.getStorageSync('openid_wx_mini')", uni.getStorageSync('openid_wx_mini'))
			if (uni.getStorageSync('openid_wx_mini') == undefined || uni.getStorageSync('openid_wx_mini') == '') {
				this.openid_get_wx_mini();
			}
			// #endif

			// #ifdef MP-TOUTIAO
			console.log("uni.getStorageSync('openid_toutiao_mini')", uni.getStorageSync('openid_toutiao_mini'))
			if (uni.getStorageSync('openid_toutiao_mini') == undefined || uni.getStorageSync('openid_toutiao_mini') == '') {
				this.openid_get_toutiao_mini();
			}
			// #endif

		},
		computed: {
			isWxH5() {
				//如果是H5环境,并且是微信公众号环境UA判断
				// #ifdef H5
				if (navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == "micromessenger") {
					return true
				}
				// #endif
				return false
			},
		},
		onLoad(t) {
			this.get_uni_cloud_im_config();

			if (uni.getStorageSync('cache_system')) {
				this.system = uni.getStorageSync('cache_system');
			}
			if (uni.getStorageSync('cache_qdset')) {
				this.qdset = uni.getStorageSync('cache_qdset');
			}
			if (uni.getStorageSync('cache_fxset')) {
				this.fxset = uni.getStorageSync('cache_fxset');
			}
			this.user_is_login = uni.getStorageSync('user_is_login') ? true : false;
			this.store_is_login = uni.getStorageSync('store_is_login') ? true : false;
			if (!this.user_is_login) {
				this.logout_user()
			}
			if (!this.store_is_login) {
				this.logout_store()
			}

			if (t.is_show_login) {
				console.log("this.store_is_login", this.store_is_login);
				//显示登录
				if (this.store_is_login) {
					uni.showModal({
						title: '提示',
						content: '您已登录到商家身份，需要先退出商家,才能登录用户端.',
					})
				} else {
					if (this.user_is_login == false) {
						this.isShowModal = true;
					}
				}
			}

			app.globalData.setNavigationBarColor(this);
			this.appPageOnLoad(app);


			var that = this;
			var e = uni.getStorageSync('users').id;
			console.log(e);
			app.globalData.util.request({
				url: 'entry/wxapp/MyCoupons',
				cachetime: '0',
				data: {
					user_id: e
				},
				success: function(t) {
					console.log(t.data);
					that.setData({
						yhnum: t.data.length
					});
				}
			});

			app.globalData.util.request({
				url: 'entry/wxapp/system',
				cachetime: '0',
				success: function(t) {
					console.log(t);
					uni.setStorageSync('cache_system', t.data)
					that.setData({
						system: t.data
					});
				}
			});
			app.globalData.util.request({
				url: 'entry/wxapp/CheckRetail',
				cachetime: '0',
				success: function(t) {
					console.log(t);
					uni.setStorageSync('cache_fxset', t.data)
					that.setData({
						fxset: t.data
					});
				}
			});
			app.globalData.util.request({
				url: 'entry/wxapp/Signset',
				cachetime: '0',
				success: function(t) {
					console.log('签到设置', t);
					uni.setStorageSync('cache_qdset', t.data)
					that.setData({
						qdset: t.data
					});
				}
			});
			app.globalData.util.request({
				url: 'entry/wxapp/ad',
				cachetime: '0',
				success: function(t) {
					console.log(t);
					for (var e = [], a = 0; a < t.data.length; a++) {
						if ('7' == t.data[a].type) {
							e.push(t.data[a]);
						}
					}
					console.log(e);
					that.setData({
						lblist: e
					});
				}
			});
			app.globalData.util.request({
				url: 'entry/wxapp/Llz',
				cachetime: '0',
				data: {
					type: '3,4'
				},
				success: function(t) {
					console.log(t);
					for (var e = [], a = [], n = 0; n < t.data.length; n++) {
						if (3 == t.data[n].type) {
							e.push(t.data[n]);
						}
						if (4 == t.data[n].type) {
							a.push(t.data[n]);
						}
					}
					that.setData({
						dbllz: e,
						zbllz: a
					});
				}
			});
			uni.getSystemInfo({
				success: function(t) {
					console.log(t.model);
					console.log(t.pixelRatio);
					console.log(t.windowWidth);
					console.log(t.windowHeight);
					console.log(t.language);
					console.log(t.version);
					console.log(t.platform);
					if ('android' != t.platform) {
						that.setData({
							top: '-330'
						});
					}
				}
			});
		},

		onReady: function() {},
		onShow: function() {
			this.user_is_login = uni.getStorageSync('user_is_login') ? true : false;
			this.store_is_login = uni.getStorageSync('store_is_login') ? true : false;


			var that = this;
			var t = uni.getStorageSync('users').id;
			var n = util
				.formatTime(new Date())
				.substring(0, 10)
				.replace(/\//g, '-');

			this.userInfo = uni.getStorageSync('users')
			this.top = uni.getSystemInfoSync().statusBarHeight + 44;
		},
		onHide: function() {},
		onUnload: function() {},
		onPullDownRefresh: function() {
			this.load_user_info();
			setTimeout(() => {
				uni.stopPullDownRefresh()
			}, 1000)
		},
		onReachBottom: function() {},


		methods: {
			get_uni_cloud_im_config() {
				//请求 uni_cloud_im_config 接口
				app.globalData.util.request({
					url: 'entry/wxapp/uni_cloud_im_config',
					success: function(res) {
						console.log("UNIAPP云配置", res)
						if (res.data.code == 1) {
							uni.setStorageSync('client_uniapp_id', res.data.data.client_uniapp_id)
							uni.setStorageSync('runner_uniapp_id', res.data.data.runner_uniapp_id)

							console.log("client_uniapp_id", uni.getStorageSync('client_uniapp_id'))
							console.log("runner_uniapp_id", uni.getStorageSync('runner_uniapp_id'))
						}
					}
				})
			},
			load_user_info() {
				//加载用户信息
				this.userInfo = uni.getStorageSync('users')
				this.user_is_login = uni.getStorageSync('user_is_login') ? true : false;
				if (this.user_is_login == false) {
					return
				}
				app.globalData.util.request({
					url: 'entry/wxapp/get_user_info',
					data: {},
					success: async (res) => {
						console.log("实时读取用户信息", res.data)
						if (res.data.code == 1) {
							uni.setStorageSync('users', res.data.data)
							this.userInfo = res.data.data
						}
					}
				});
			},
			logout_user() {
				//退出用户身份
				this.userInfo = null
				app.globalData.token = null
				uni.removeStorageSync('dy-token')
				this.user_is_login = false
				uni.removeStorageSync('users')
				uni.removeStorageSync('user_is_login')

			},
			logout_store() {

				//退出商家身份
				this.store_is_login = false
				uni.removeStorageSync('store_is_login')
				uni.removeStorageSync('sjdsjid')
			},
			logout() {
				this.logout_user()
				this.logout_store()

				// #ifdef APP || MP-WEIXIN || H5
				//退出uni-id身份
				uniIdMutations.logout()
				// #endif

				uni.$u.toast("退出成功");
				//     未登录,跳转到登录页面
				uni.reLaunch({
					url: '/ymq_canyino2o/pages/my2/index?is_show_login=1'
				})
			},
			un_open() {
				this.show95Modal("平台未开放功能");
			},
			un_dev() {
				this.show95Modal("平台未开放功能");
			},
			getCid() {
				uni.getPushClientId({
					success(res) {
						console.log('getPushClientId OK', res);
					},
					fail(e) {
						console.log('getPushClientId ERROR', e);
					}
				})
			},

			getUrlParam(url, name) {
				//从url中获取name的值
				var pattern = new RegExp('[?&]' + name + '=([^&]+)', 'g');
				var matcher = pattern.exec(url);
				var items = null;
				if (matcher != null) {
					try {
						items = decodeURIComponent(decodeURIComponent(matcher[1]));
					} catch (e) {
						try {
							items = decodeURIComponent(matcher[1]);
						} catch (e) {
							items = matcher[1];
						}
					}
				}
				return items;
			},
			openid_get_wx_gzh() {
				console.log("公众号身份获取 openid_wx_gzh")
				// 微信公众号授权获取code换openid
				let code = this.getUrlParam(window.location.href, 'code')
				if (code == null || code == '') {
					let url = window.location.href
					let url2 = encodeURIComponent(url)
					// let url3 = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + app.globalData.xtxx.wxgzh_appid + '&redirect_uri=' + url2 + '&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect'
					console.log("app.globalData.siteinfo.domain_root", app.globalData.siteinfo.domain_root)
					// let url3 = 'https://w7wm2.ttmm.vip/get-weixin-code.html?appid=' + app.globalData.xtxx.wxgzh_appid + '&scope=snsapi_base&state=hello-world&redirect_uri=' + url2 + ''
					let url3 = app.globalData.siteinfo.domain_root + '/get-weixin-code.html?appid=' + app.globalData.xtxx
						.wxgzh_appid + '&scope=snsapi_base&state=hello-world&redirect_uri=' + url2 + ''
					window.location.href = url3
				} else {
					app.globalData.util.request({
						url: 'entry/wxapp/login_wxgzh_code_to_openid',
						no_token: true,
						data: {
							code: code
						},
						cachetime: 0,
						success: function(res_openid) {
							console.info("openid_wx_gzh", res_openid.data.openid);
							uni.setStorageSync("openid_wx_gzh", res_openid.data.openid);
						},
						fail: function(err) {
							setTimeout(() => {
								//获取当前访问协议和访问域名
								let domain = window.location.protocol + "//" + window.location.host
								window.local.href = domain
							}, 1000)
							console.error("uni.login 后端服务器错误", err)
							uni.showToast({
								title: '微信身份获取 失败,不能登录!',
								icon: 'none'
							})
						}
					});
				}
			},
			openid_get_wx_mini() {
				console.log("头条身份获取 openid_wx_mini")
				uni.login({
					success(res) {
						app.globalData.util.request({
							url: "entry/wxapp/openid",
							no_token: true,
							data: {
								code: res.code
							},
							cachetime: 0,
							success: function(res_openid) {
								console.info("openid_wx_mini", res_openid.data.openid);
								uni.setStorageSync("openid_wx_mini", res_openid.data.openid);
							},
							fail: function(err) {
								console.error("uni.login 后端服务器错误", err)
								uni.showToast({
									title: '微信身份获取 失败,不能登录!',
									icon: 'none'
								})
							}
						});
					},
					fail(err) {
						console.error("uni.login err", err)
						uni.showToast({
							title: '微信身份获取 失败,不能登录!',
							icon: 'none'
						})
					},
				});
			},
			openid_get_toutiao_mini() {
				console.log("头条身份获取 openid_get_toutiao_mini")
				uni.login({
					success(res) {
						app.globalData.util.request({
							url: "entry/wxapp/openid_toutiao",
							no_token: true,
							data: {
								code: res.code
							},
							cachetime: 0,
							success: function(res_openid) {
								console.info("openid_toutiao_mini all", res_openid);
								console.info("openid_toutiao_mini", res_openid.data.data.openid);
								uni.setStorageSync("session_key_toutiao_mini", res_openid.data.data.session_key);
								uni.setStorageSync("openid_toutiao_mini", res_openid.data.data.openid);
							},
							fail: function(err) {
								console.error("uni.login 后端服务器错误", err)
								uni.showToast({
									title: '头条身份获取 失败,不能登录!',
									icon: 'none'
								})
							}
						});
					},
					fail(err) {
						console.error("uni.login err", err)
						uni.showToast({
							title: '头条身份获取 失败,不能登录!',
							icon: 'none'
						})
					},
				});
			},
			async loginClick() {
				if (this.store_is_login) {
					//用户登录成功了,则提示请先退出用户身份,再登录商家
					uni.showToast({
						title: '请先退出商家身份,再登录用户身份!',
						icon: 'none'
					})
					return
				}

				uni.showLoading({
					title: '登录中..'
				})
				this.loginParams.deviceId = uni.getSystemInfoSync().deviceId
				app.globalData.util.request({
					url: 'entry/wxapp/login_tel',
					no_token: true,
					data: {
						...this.loginParams
					},
					fail: () => {
						uni.hideLoading()
					},
					success: async (res) => {
						uni.hideLoading()
						uni.showToast({
							title: res.data.msg
						});
						if (res.data.code != 0) {
							this.isShowModal = false
							this.userInfo = res.data.data.user

							//全局用户信息
							app.globalData.userInfo = res.data.data.user

							app.globalData.token = res.data.data.dy_token
							uni.setStorageSync('dy-token', res.data.data.dy_token)
							uni.setStorageSync('user_is_login', true)
							uni.setStorageSync('users', res.data.data.user)
							this.user_is_login = true

							// #ifdef APP || MP-WEIXIN || H5
							// 【请注意】这里的`uniIdToken` 是一个`对象`：包含：`token`和`tokenExpired`
							await uniImUtils.login({
								token: res.data.data.dy_uni_token,
								tokenExpired: res.data.data.dy_uni_token_expired
							})
							// #endif

							if (uni.getStorageSync('share_result_reg')) {
								uni.setStorageSync('share_result', true)
								uni.removeStorageSync('share_result_reg')
							}

							// #ifdef APP-PLUS || H5
							uni.preloadPage({
								url: "/ymq_canyino2o/pages/dyIm/imList/index"
							});
							// #endif

						}
					}
				});
			},
			toRegister() {
				let that = this
				console.log("share_user_id", uni.getStorageSync('share_user_id'))
				// this.loginParams.share_user_id=uni.getStorageSync('share_user_id')
				this.loginParams.share_user_id = 3
				app.globalData.util.request({
					url: 'entry/wxapp/login_register_found_tel',
					no_token: true,
					data: {
						...this.loginParams
					},
					success: (res) => {
						uni.showToast({
							title: res.data.msg
						});
						if (res.data.code == 1) {
							this.isFindPsd = false
							if (res.data.data.share_result) {
								//分享有礼注册成功,说明有礼物领取
								uni.setStorageSync('share_result_reg', true)
								uni.setStorageSync('share_money', res.data.data.share_money)
							}
						}
					}
				});
			},
			toSendMsg() {
				let that = this
				const {
					user_tel
				} = this.loginParams
				app.globalData.util.request({
					url: 'entry/wxapp/sms_code',
					no_token: true,
					data: {
						user_tel
					},
					success: function(res) {
						uni.showToast({
							title: res.data.msg
						});
						that.loginParams.sms_code = res.data.data.sms_code
					}
				});
			},
			toLogin() {
				this.isFindPsd = false
			},
			wxgzh_login() {
				let openid_wx_gzh = uni.getStorageSync("openid_wx_gzh");
				if (!openid_wx_gzh) {
					uni.showToast({
						title: '微信身份获取失败!请关闭重新进入!',
						icon: 'none'
					})
					return
				}

				app.globalData.util.request({
					url: 'entry/wxapp/login_wxgzh_openid',
					no_token: true,
					data: {
						wx_h5_openid: openid_wx_gzh,
						deviceId: uni.getSystemInfoSync().deviceId,
					},
					success: async (res) => {
						uni.hideLoading()
						uni.showToast({
							title: res.data.msg
						});
						if (res.data.code != 0) {
							this.isShowModal = false
							this.userInfo = res.data.data.user

							//全局用户信息
							app.globalData.userInfo = res.data.data.user

							app.globalData.token = res.data.data.dy_token
							uni.setStorageSync('dy-token', res.data.data.dy_token)
							uni.setStorageSync('user_is_login', true)
							uni.setStorageSync('users', res.data.data.user)
							this.user_is_login = true

							// 【请注意】这里的`uniIdToken` 是一个`对象`：包含：`token`和`tokenExpired`
							await uniImUtils.login({
								token: res.data.data.dy_uni_token,
								tokenExpired: res.data.data.dy_uni_token_expired
							})

							if (uni.getStorageSync('share_result_reg')) {
								uni.setStorageSync('share_result', true)
								uni.removeStorageSync('share_result_reg')
							}

							// #ifdef APP-PLUS || H5
							uni.preloadPage({
								url: "/ymq_canyino2o/pages/dyIm/imList/index"
							});
							// #endif

						}
					},
					fail: (err) => {
						uni.hideLoading()
						console.log("decryptPhoneNumber", err)
					}
				});
			},
			async decrypt_toutiao_phone_number(e) {
				uni.showLoading();

				let session_key_toutiao_mini = uni.getStorageSync("session_key_toutiao_mini");
				if (!session_key_toutiao_mini) {
					// await this.openid_get_toutiao_mini()
					console.log("session_key_toutiao_mini", session_key_toutiao_mini);
					uni.showToast({
						title: '获取session_key失败!请关闭重新进入!',
						icon: 'none'
					})
					return
				}

				console.log("getphonenumber errMsg", e.detail.errMsg);
				console.log("getphonenumber iv", e.detail.iv);
				console.log("getphonenumber encryptedData", e.detail.encryptedData);
				//网页请求, 获取手机号
				app.globalData.util.request({
					url: 'entry/wxapp/login_toutiao_xcx',
					no_token: true,
					data: {
						err_msg: e.detail.errMsg,
						session_key: session_key_toutiao_mini,
						iv: e.detail.iv,
						encrypted_data: e.detail.encryptedData,
						deviceId: uni.getSystemInfoSync().deviceId
					},
					success: async (res) => {
						uni.hideLoading()
						// console.log("decryptPhoneNumber",res.data)
						uni.showToast({
							title: res.data.msg
						});
						if (res.data.code != 0) {
							this.isShowModal = false
							this.userInfo = res.data.data.user

							//全局用户信息
							app.globalData.userInfo = res.data.data.user

							app.globalData.token = res.data.data.dy_token
							uni.setStorageSync('dy-token', res.data.data.dy_token)
							uni.setStorageSync('user_is_login', true)
							uni.setStorageSync('users', res.data.data.user)
							this.user_is_login = true

							if (uni.getStorageSync('share_result_reg')) {
								uni.setStorageSync('share_result', true)
								uni.removeStorageSync('share_result_reg')
							}

						}

					},
					fail: (err) => {
						uni.hideLoading()
						console.log("decryptPhoneNumber", err)
					}
				});
			},
			async decryptPhoneNumber(e) {
				uni.showLoading();
				console.log("getphonenumber", e.detail.code)
				//网页请求, 获取手机号
				app.globalData.util.request({
					url: 'entry/wxapp/login_wxapp_xcx',
					no_token: true,
					data: {
						code: e.detail.code,
						deviceId: uni.getSystemInfoSync().deviceId
					},
					success: async (res) => {
						uni.hideLoading()
						// console.log("decryptPhoneNumber",res.data)
						uni.showToast({
							title: res.data.msg
						});
						if (res.data.code != 0) {
							this.isShowModal = false
							this.userInfo = res.data.data.user

							//全局用户信息
							app.globalData.userInfo = res.data.data.user

							app.globalData.token = res.data.data.dy_token
							uni.setStorageSync('dy-token', res.data.data.dy_token)
							uni.setStorageSync('user_is_login', true)
							uni.setStorageSync('users', res.data.data.user)
							this.user_is_login = true

							// 【请注意】这里的`uniIdToken` 是一个`对象`：包含：`token`和`tokenExpired`
							await uniImUtils.login({
								token: res.data.data.dy_uni_token,
								tokenExpired: res.data.data.dy_uni_token_expired
							})

							if (uni.getStorageSync('share_result_reg')) {
								uni.setStorageSync('share_result', true)
								uni.removeStorageSync('share_result_reg')
							}

							// #ifdef APP-PLUS || H5
							uni.preloadPage({
								url: "/ymq_canyino2o/pages/dyIm/imList/index"
							});
							// #endif

						}

					},
					fail: (err) => {
						uni.hideLoading()
						console.log("decryptPhoneNumber", err)
					}
				});
			},
			onFindPsdClick() {
				this.isFindPsd = true
			},
			toDownloadShop() {
				uni.navigateTo({
					url: '/ymq_canyino2o/pages/downloadShop/index'
				});
			},
			toDownload() {
				uni.navigateTo({
					url: '/ymq_canyino2o/pages/download/index'
				});
			},
			toJoin() {
				uni.navigateTo({
					url: '/ymq_canyino2o/pages/join/index'
				});
			},
			wdsc: function() {
				this.goToPageUrlUserLogin('../extra/wdsc')
			},

			wddd: function() {
				this.goToPageUrlUserLogin('../wddd/order')
			},

			wddz: function() {
				this.goToPageUrlUserLogin('../wddz/xzdz')
			},

			wdyy: function() {
				this.goToPageUrlUserLogin('../reserve/order')
			},

			wdqg: function() {
				this.goToPageUrlUserLogin('../xsqg/order')
			},

			jrqd: function() {
				this.goToPageUrlUserLogin('../qd/qd')
			},

			wdpt: function() {
				this.goToPageUrlUserLogin('../collage/order')
			},

			wdyhq: function() {
				this.goToPageUrlUserLogin('../my/myyhq')
			},


			help: function() {
				uni.navigateTo({
					url: '../my/bzzx'
				});
			},

			seller: function() {
				if (this.user_is_login) {
					//用户登录成功了,则提示请先退出用户身份,再登录商家
					uni.showToast({
						title: '请先退出用户身份,再登录商家身份!',
						icon: 'none'
					})
					return
				}

				if (this.store_is_login) {
					//如果商家已登录,则直接跳转到商家中心
					// this.goToPageUrlReLaunch('/ymq_canyino2o/pages/sjzx/wmdd/wmdd')
					this.goToPageUrl('/ymq_canyino2o/pages/sjzx/wmdd/wmdd')
					return
				} else {
					this.goToPageUrl('/ymq_canyino2o/pages/sjzx/login')
					return
				}


				// var t = uni.getStorageSync('users').id;
				// app.globalData.util.request({
				// 	url: 'entry/wxapp/CheckRz',
				// 	cachetime: '0',
				// 	data: {
				// 		user_id: t
				// 	},
				// 	success: function(t) {
				// 		console.log(t.data);
				// 		if (0 != t.data) {
				// 			if (1 == t.data.state) {
				// 				uni.showModal({
				// 					title: '',
				// 					content: '系统正在审核中'
				// 				});
				// 			} else {
				// 				if (2 == t.data.state) {
				// 					uni.setStorageSync('sjdsjid', t.data.id);
				// 					uni.navigateTo({
				// 						url: '../sjzx/wmdd/wmdd'
				// 					});
				// 				} else {
				// 					if (3 == t.data.state) {
				// 						uni.showModal({
				// 							title: '',
				// 							content: '您的合作申请已被拒绝，点击确定进行编辑',
				// 							success: function(t) {
				// 								if (t.confirm) {
				// 									uni.navigateTo({
				// 										url: '../ruzhu/index?state=3'
				// 									});
				// 								}
				// 							}
				// 						});
				// 					} else {
				// 						uni.showModal({
				// 							title: '',
				// 							content: '您的合作已经到期,请联系平台管理员续费'
				// 						});
				// 					}
				// 				}
				// 			}
				// 		} else {
				// 			uni.navigateTo({
				// 				url: '../sjzx/login'
				// 			});
				// 		}
				// 	}
				// });

			},

			fx: function() {
				this.goToPageUrlLogin('../distribution/index')
			},

			jfsc: function() {
				this.goToPageUrlLogin('../integral/integral')
			},

			czzx: function() {
				this.goToPageUrlLogin('../wallet/walletadd')
			},

			tzhy: function() {
				this.goToPageUrlLogin('../hyk/hyk')
			},
			onModalClose() {
				this.isShowModal = false;
			},
			onModalOpen() {},
			onLoginClick() {
				this.isShowModal = true;
				// let that = this;
				// app.globalData.util.request({
				// 	url: 'entry/wxapp/login',
				// 	cachetime: '0',
				// 	data: {
				// 		xxxx: '1111'
				// 	},
				// 	dataType: 'json',
				// 	success: function(t) {
				// 		app.globalData.userInfo = t.data;
				// 		console.log('用户信息', t);
				// 	}
				// });
			},
			changeData: function() {
				var that = this;
				uni.getUserProfile({
					desc: '用于完善会员资料',
					success: res => {
						app.globalData.util.request({
							url: 'entry/wxapp/login',
							cachetime: '0',
							data: {
								openid: getApp().globalData.getOpenId,
								img: res.userInfo.avatarUrl,
								name: res.userInfo.nickName
							},
							header: {
								'content-type': 'application/json'
							},
							dataType: 'json',
							success: function(t) {
								app.globalData.userInfo = t.data;
								console.log('用户信息', t);
							}
						});
						var userInfo = that.userInfo;
						userInfo.img = res.userInfo.avatarUrl;
						userInfo.user_name = res.userInfo.nickName;
						userInfo.name = res.userInfo.nickName;
						that.setData({
							userInfo: userInfo,
							avatarUrl: res.userInfo.avatarUrl,
							nickName: res.userInfo.nickName
						});
					}
				});
			},

			jumps: function(t) {
				var e = t.currentTarget.dataset.id;
				var a = t.currentTarget.dataset.name;
				var n = t.currentTarget.dataset.appid;
				var o = t.currentTarget.dataset.src;
				var s = t.currentTarget.dataset.wb_src;
				var i = t.currentTarget.dataset.type;
				console.log(e, a, n, o, s, i);
				if (1 == i) {
					console.log(o);
					uni.navigateTo({
						url: o
					});
				} else {
					if (2 == i) {
						uni.setStorageSync('vr', s);
						uni.navigateTo({
							url: '../car/car'
						});
					} else {
						if (3 == i) {
							uni.navigateToMiniProgram({
								appId: n
							});
						}
					}
				}
			},

			feedback: function(t) {
				uni.navigateTo({
					url: 'feedback'
				});
			},

			wallet: function(t) {
				uni.navigateTo({
					url: '../wallet/wallet'
				});
			},

			set_up: function(t) {
				uni.navigateTo({
					url: 'set_up'
				});
			},

			receive: function(t) {
				uni.navigateTo({
					url: 'receive'
				});
			},

			integral: function(t) {
				uni.navigateTo({
					url: '../integral/myintegral'
				});
			},

			sign_in: function(t) {
				uni.navigateTo({
					url: 'rankings'
				});
			},

			sjrz: function(t) {
				var e = uni.getStorageSync('users').id;
				app.globalData.util.request({
					url: 'entry/wxapp/CheckRz',
					cachetime: '0',
					data: {
						user_id: e
					},
					success: function(t) {
						console.log(t.data);
						if (0 != t.data) {
							if (1 == t.data.state) {
								uni.showModal({
									title: '',
									content: '系统正在审核中'
								});
							} else {
								if (2 == t.data.state) {
									uni.showModal({
										title: '',
										content: '您已经合作过了'
									});
								} else {
									if (3 == t.data.state) {
										uni.showModal({
											title: '',
											content: '您的合作申请已被拒绝，点击确定进行编辑',
											success: function(t) {
												if (t.confirm) {
													uni.navigateTo({
														url: '../ruzhu/index?state=3'
													});
												}
											}
										});
									} else {
										uni.showModal({
											title: '',
											content: '您的合作已经到期,请联系平台管理员续费'
										});
									}
								}
							}
						} else {
							uni.navigateTo({
								url: '../ruzhu/index'
							});
						}
					}
				});
			}
		}
	};
</script>
<style scoped lang="scss">
	.container {
		padding-bottom: 155rpx;
		min-height: 100vh;
		background: linear-gradient(180deg, #8EC0F6, #E9F1FA, #EFEFEF, #FEFEFE);
	}

	.hydl {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.hydl view {
		margin-top: 20rpx;
		font-size: 30rpx;
	}

	.djsq {
		color: #333;
	}

	.hydlbd {
		width: 60%;
		left: 50%;
		top: 35%;
		position: fixed;
		transform: translate(-50%, 0);
		background: #fff;
		border-radius: 10px;
		z-index: 999;
		padding: 50rpx;
	}

	.hydlqueren {
		position: relative;
		height: 75rpx;
		width: 60%;
		font-size: 30rpx;
		line-height: 75rpx;
		text-align: center;
		color: white;
		background: #09bb07;
		border-radius: 10rpx;
		margin-top: 30rpx;
	}

	button:active {
		color: rgba(255, 255, 255, 0.6);
		opacity: 0.6;
	}

	.hydlzhezhao {
		position: fixed;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		background: rgba(0, 0, 0, 0.7);
		z-index: 998;
	}

	page {
		background-color: #f5f5f5;
	}

	.qd {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		font-size: 28rpx;
	}

	.qd image {
		width: 60rpx;
		height: 60rpx;
		margin-bottom: 20rpx;
	}

	.logs_header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		color: white;
		position: relative;
		padding-left: 24rpx;
		padding-right: 35rpx;
		box-sizing: border-box;

		.logs_img {
			display: flex;
			align-items: center;
			flex-direction: row;

			.name {
				display: flex;
				flex-direction: column;
			}

			image {
				margin-right: 20rpx;
			}

			text {
				color: #000;
				font-size: 32rpx;
			}

			text:nth-child(2) {
				color: #fff;
				font-size: 28rpx;
			}
		}
	}

	.logs_header image.setting {
		width: 40rpx;
		height: 40rpx;
	}

	.logs_header .left,
	.logs_header .right {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.logs_header .left text,
	.logs_header .right text {
		display: block;
		color: #333;
	}

	.logs_header .left text:nth-child(2),
	.logs_header .right text:nth-child(2) {
		color: red;
		font-weight: 600;
		margin: 5rpx 0;
	}

	.logs_header .btn {
		color: #333;
		padding: 2rpx 20rpx;
		border: 1px solid #333;
		border-radius: 50rpx;
		margin-top: 4rpx;
	}

	.logs_img {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.blackjt {
		position: absolute;
		right: 20rpx;
	}

	.logs_items {
		display: flex;
		background: #fff;
		width: calc(100% - 40rpx);
		box-sizing: border-box;
		margin: 68rpx auto 36rpx;
		padding: 27rpx 65rpx;
		justify-content: space-between;
		border-radius: 10rpx;

		.item {
			display: flex;
			flex-direction: column;
			align-items: center;

			image {
				width: 34rpx;
				height: 34rpx;
			}

			image.jf,
			image.yhq {
				width: 36rpx;
				height: 30rpx;
			}

			text {
				font-size: 24rpx;
				color: #3C3939;
			}

			.num {
				font-size: 32rpx;
				color: #000;
				font-weight: 600;
				margin-top: 12rpx;
			}
		}
	}

	.logs_img image {
		margin-bottom: 10rpx;
	}

	.logs_imgs {
		width: 100rpx;
		height: 100rpx;
		min-width: 100rpx;
		border-radius: 50%;
	}

	.huanggimg {
		position: absolute;
		width: 30rpx;
		height: 30rpx;
		bottom: 10rpx;
		left: 70rpx;
	}

	.logs_img {
		display: flex;
		align-items: center;
		position: relative;
	}

	.blackjt {
		width: 30rpx;
		height: 30rpx;
	}

	.logs_name {
		/* margin-left: 30rpx; */
	}

	.logs_name1 {
		font-size: 30rpx;
		color: #333;
	}

	.logs_user {
		display: flex;
		margin-top: 15rpx;
	}

	.logs_tubiao {
		width: 20rpx;
		height: 30rpx;
		border-radius: 6rpx;
		margin-right: 10rpx;
	}

	.logs_tel {
		font-size: 24rpx;
	}

	.logs_imgright {
		width: 20rpx;
		height: 30rpx;
	}

	.logs_content {
		width: 95%;
		margin: 20rpx auto;
		padding: 20rpx;
		background-color: white;
		display: flex;
		border-radius: 10rpx;
	}

	button {
		border-radius: 0rpx;
	}

	button::after {
		border-radius: 0rpx;
	}

	.content_left {
		width: 33.33%;
		height: 120rpx;
		/* border-right: 1rpx solid #d5d5d5; */
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.content_left1 {
		color: #ff9900;
	}

	.content_integral {
		font-size: 24rpx;
	}

	.content_font {
		font-size: 42rpx;
	}

	.content_coll {
		font-size: 22rpx;
	}

	.content_middle {
		color: #ff5f3e;
	}

	.content_right {
		color: #6ac20b;
	}

	.wallet_img {
		width: 60rpx;
		height: 60rpx;
	}



	.logs_order {
		width: calc(100% - 40rpx);
		margin: 37rpx auto;
		padding: 20rpx 20rpx 30rpx;
		box-sizing: border-box;
		border-radius: 10rpx;
		background: #fff;

		.title {
			font-size: 30rpx;
			color: #000000;
		}

		.wrapper {
			display: flex;
			flex-wrap: wrap;

			.logs_center {
				width: 25%;
				display: flex;
				flex-direction: column;
				align-items: center;
				margin-top: 60rpx;
				color: #000000;
				font-size: 24rpx;
				border: none;

				image {
					margin-right: 0;
				}
			}
		}


	}

	.logs_center {
		height: 89rpx;
		border-bottom: 1rpx solid #EEEEEE;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.center_img {
		width: 30rpx;
		height: 30rpx;
	}


	.center_map {
		width: 60rpx;
		height: 60rpx;
		margin-right: 25rpx;
	}

	.logs_centerimg {
		display: flex;
		align-items: center;
	}

	.logs_seller {
		width: calc(100% - 40rpx);
		display: flex;
		justify-content: space-between;
		margin: 0 auto;
		box-sizing: border-box;

		.logs_center {
			background: #fff;
			display: flex;
			align-items: center;
			justify-content: flex-start;
			border-radius: 10rpx;
			flex: 1;
			padding: 34rpx 22rpx;
			box-sizing: border-box;
			font-size: 24rpx;
			color: #101010;

			image {
				margin-right: 21rpx;
			}
		}

		.logs_center:nth-child(1) {
			margin-right: 30rpx;
		}
	}

	.footer {
		display: flex;
		justify-content: center;
		align-items: center;
		margin-top: 80rpx;
	}

	.footer_img {
		width: 50rpx;
		height: 50rpx;
	}

	.footer_text1 {
		font-size: 36rpx;
		color: #999;
		margin-left: 10rpx;
	}

	.hykimg {
		margin-top: 30rpx;
		width: 100%;
		height: 150rpx;
	}

	.hykimg image {
		width: 100%;
		height: 100%;
	}

	.banner {
		margin-top: 20rpx;
		width: 100%;
		height: 200rpx;
	}

	.swiper-container .swiper {
		height: 200rpx;
	}

	.cjhy {
		margin-left: 20rpx;
		font-size: 20rpx;
		background: #2d2c31;
		color: #fde89c;
		padding: 0rpx 10rpx;
		border-radius: 5rpx;
	}

	.cjhy image {
		margin-right: 10rpx;
		width: 25rpx;
		height: 25rpx;
	}

	.sq_screen {
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 1000;
		background: #000;
		opacity: 0.7;
		overflow: hidden;
	}

	.sq_box {
		width: 80vw;
		overflow: hidden;
		position: fixed;
		top: 15%;
		left: 0;
		z-index: 1001;
		background: #fafafa;
		margin: 0 10vw 0 10vw;
		border-radius: 30rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.sq_box image {
		margin: 40rpx 0 40rpx 40rpx;
		width: 430rpx;
		height: 364rpx;
	}

	.sq_title {
		padding: 40rpx;
		font: 30rpx 'microsoft yahei';
		font-weight: bold;
		text-align: center;
		color: #333;
	}

	.sq_title1 {
		padding: 0 20rpx;
		font: 27rpx 'microsoft yahei';
		text-align: center;
		color: #666;
	}

	.sq_content {
		height: 210px;
		overflow-y: scroll;
	}

	.btn_ok {
		padding: 25rpx;
		font: 30rpx 'microsoft yahei';
		text-align: center;
		margin: 5rpx 0 40rpx;
		background: #f44444;
		width: 55vw;
		border-radius: 50rpx;
		color: #fff;
	}

	.bottom {
		width: 95%;
		margin: 20rpx auto;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 20rpx;
		border-radius: 10px;
		background: #fff;
	}

	.bottom image {
		width: 60rpx;
		height: 60rpx;
	}

	.tabs {
		display: flex;
		align-items: center;
		margin-bottom: 40rpx;
	}

	.tabs .tab-item {
		margin-right: 40rpx;
	}

	.tabs .tab-item.active {
		font-weight: 600;
	}

	.register {
		width: 100%;
		margin-top: 40rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
	}
	.log-out {
		padding: 19rpx 120rpx;
		border-radius: 33rpx;
		background: #369FF2;
		color: #fff;
		font-size: 28rpx;
		margin: 40rpx auto;
		position: fixed;
		bottom: 130rpx;
		left: 50%;
		transform: translateX(-50%);
	}
</style>